# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-applets
pkgver=3.36.4
pkgrel=0
pkgdesc="Small programs for the panel"
url="https://wiki.gnome.org/Projects/GnomeApplets"
arch="all !s390x !ppc64le !armhf !mips !mips64" # missing dep: gnome-panel
license="GPL-2.0-or-later"
depends="adwaita-icon-theme"
makedepends="gtk+3.0-dev glib-dev libgtop-dev libwnck3-dev libnotify-dev upower-dev
	dbus-glib-dev adwaita-icon-theme-dev libxml2-dev libgweather-dev polkit-dev
	gucharmap-dev intltool gnome-panel-dev itstool cpupower-dev tracker-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gnome-applets/${pkgver%.*}/gnome-applets-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-mini-commander
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="6fd8f891358f02f40c8d6548b1680139f18cbbcd20d773798a998246b6431692ce8550e8652eaff09bde3651a4e5449779a0dc85b897345a22c17be2e386d2c7  gnome-applets-3.36.4.tar.xz"
